<%-- 
    Document   : index
    Created on : 20-Jan-2013, 22:16:54
    Author     : Joseph
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="css/style.css" rel="stylesheet" type="text/css"/>
        <title>Student Information</title>
        <link rel="shortcut icon" href="http://www.wikipedia.org/favicon.ico" />


        <script type="text/javascript">

            function validate(evt) {
                var theEvent = evt || window.event;
                var key = theEvent.keyCode || theEvent.which;
                key = String.fromCharCode(key);
                var regex = /[0-9]|\./;
                if (!regex.test(key)) {
                    theEvent.returnValue = false;
                    if (theEvent.preventDefault)
                        theEvent.preventDefault();
                }
            }
        </script>

    </head>

    <header id="top">

        Busqueda y edicion

    </header>
    <body>

        <div id="left">
            <button onclick="window.location.href = '/crudSearchJsp_conImagen/index.jsp'">Inicio</button>
        </div>


        <div id="right">


        </div>

        <div id="content" class="right_content">



            <form action="./StudentServlet" method="POST">
                <table>
                    <tr>
                        <td>Student ID</td>
                        <td><input type="text" name="studentId" required="true" value="${student.studentId}" autocomplete="off" onkeypress='validate(event)'/></td>
                    </tr>

                    <tr>
                        <td colspan="2">

                            <input class="buttom" type="submit" name="action" value="Search" />

                        </td>                
                    </tr>            
                </table>
            </form>        
            <p>${nulo}</p>

            <br/>
            <br/>
            <br/>
            <br/>




        </div>






    </body>
    <footer id="bottom">
        Formulario de busqueda
    </footer>    


</html>
